package org.asm.common.classloaderdemo;

import com.sun.xml.internal.ws.org.objectweb.asm.ClassVisitor;

/**
 * @description:
 * @author: LiuLei
 * @create: 2024-09-20
 **/
public class Test {


    public static void main(String[] args) {
        ClassLoader classLoader = Test.class.getClassLoader();
        while (classLoader != null){
            System.out.println(classLoader);
            classLoader = classLoader.getParent();
        }
        System.out.println("-----");
        ClassLoader classLoader1 = Integer.class.getClassLoader();
        while (classLoader1 != null){
            System.out.println(classLoader1);
            classLoader1 = classLoader1.getParent();
        }

        System.out.println("+++++++++");
        ClassLoader classLoader2 = ClassVisitor.class.getClassLoader();
        System.out.println(classLoader2);
        while (classLoader2 != null){
            System.out.println(classLoader2);
            classLoader2 = classLoader2.getParent();
        }


    }
}
